import React from "react";
import Chart from "echarts-for-react";
import style from "./ProHistoryTu.less";

class ProHistoryTu extends React.Component {
  
    setOption = () => {
        return {
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [{
                data: [820, 932, 901, 934, 1290, 1330, 1320],
                type: 'line',
                smooth: true
            }]
        }
    }

    render() {
        // console.log(this.props)
        return (



                <div id="main" className={style.main}>
                    <Chart option={this.setOption()} notMerge lazyUpdate />
                </div>

        );
    }
}

export default ProHistoryTu;
